FROM mysql/mysql-server:8.0.28
ARG TZ=UTC
ENV TZ ${TZ}
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && chown -R mysql:root /var/lib/mysql/

COPY my.cnf /etc//my.cnf

RUN chmod 0444 /etc/my.cnf
EXPOSE 3306